import { createRouter, createWebHashHistory } from 'vue-router';

let routes = [
    {
        path: '/',
        component: import('../layout/index.vue'),
        children: [
            {
                path: 'stu',
                component: () => import('../pages/home/stu/index.vue'),
                children: [
                    {
                        path: 'product',
                        component: () => import('../pages/home/stu/product/index.vue'),
                    },
                ],
            },
            
        ],
    },

    {
        path: '/login',
        component: () => import('../pages/login/index.vue'),
    },
];

let router = createRouter({
    routes,
    history: createWebHashHistory(),
});

export default router;
